import { openBuildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
    //模块列表
    getModuleList: {
        url: '/adminc/v1/home_manage/h_module/module_list',
        method: 'get'
    },
    //方案列表
    getSchemeList: {
        url: '/adminc/v1/home_manage/h_module_program/program_list',
        method: 'get'
    },
    //新增方案
    addSchemeList: {
        url: '/adminc/v1/home_manage/h_module_program/program_save',
        method: 'post'
    },
    //编辑方案
    editSchemeList: {
        url: '/adminc/v1/home_manage/h_module_program/program_edit',
        method: 'put'
    },
    //删除方案
    deleteSchemeList: {
        url: '/adminc/v1/home_manage/h_module_program/program_del',
        method: 'delete'
    },
    //切换方案
    changeSchemeList: {
        url: '/adminc/v1/home_manage/h_module_program/program_toggle',
        method: 'post'
    },
    //单位列表
    getUnitList: {
        url: '/adminc/v1/home_manage/h_module_program/get_comp_list',
        method: 'get'
    }
}

export default openBuildService(settings)